/* ================================================================ */
/* ICommunicate.h                                                   */
/* Usage: Provide process schedule interface                        */ 
/* Create Date: 2008-07-28											*/
/* Creator: MaJiuyue        										*/
/* Interface:														*/
/*      void active(pid_t pid);                                     */
/*      void block(pid_t pid);                                      */
/*      void kill(pid_t pid);                                       */
/*      void switch_to(pid_t pid);                                  */
/*      void schedule();                                            */
/* ================================================================ */
#ifndef _ISCHEDULE_H_
#define _ISCHEDULE_H_

#include <NewLife.h>

class ISchedule
{
public:
	virtual void active(pid_t pid) = 0;
	virtual void block(pid_t pid) = 0;
	virtual void kill(pid_t pid) = 0;
	virtual void switch_to(pid_t pid) = 0;
	virtual void schedule() = 0;
};

#endif

